{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "\n",
    "df = pd.DataFrame(\n",
    "    {'id': ['a', 'b', 'c'], \n",
    "     'point_latitude': [31.2384, 31.2311, 31.2334], \n",
    "     'point_longitude': [108.30948, 108.30231, 108.30238], \n",
    "     'value': [5, 11, 9], \n",
    "     'time': ['2019-08-01 12:00:00', '2019-08-01 12:05:00', '2020-08-01 11:55:00']\n",
    "     })"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "from pyl7vp import L7VP\n",
    "\n",
    "l7vp_map = L7VP(height = 600)\n",
    "\n",
    "\n",
    "# Add dataset to map\n",
    "l7vp_map.add_dataset({\"id\": \"my_dataset\", \"type\": 'local', \"data\": df})\n",
    "\n",
    "# Display map\n",
    "l7vp_map.show()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "test-env",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.2"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
